﻿using System.Web;
using System.Web.Optimization;

namespace SHDM.Web
{
    public class BundleConfig
    {
        // 有关绑定的详细信息，请访问 http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/toastr.min.js",
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery.ui.widget.js",
                        "~/Scripts/jquery.tmpl.min.js",
                        "~/Scripts/wdTree/jquery.tree.js",
                        "~/Scripts/zTree/jquery.ztree.all.js",
                        "~/Scripts/zTree/jquery.droptree.js",
                        "~/Scripts/utility.js",
                        "~/Scripts/jquery.cookie.js"));

            // 使用要用于开发和学习的 Modernizr 的开发版本。然后，当你做好
            // 生产准备时，请使用 http://modernizr.com 上的生成工具来仅选择所需的测试。
            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/bootstrapTable/bootstrap-table.js",
                      "~/Scripts/respond.js"));

            bundles.Add(new ScriptBundle("~/bundles/icheck").Include(
                     "~/Scripts/icheck/icheck.js"));

            bundles.Add(new ScriptBundle("~/bundles/fileupload").Include(
                     "~/Scripts/jquery.fileupload.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/font-awesome.css",
                      "~/Content/bootstrap.css",
                      "~/Content/toastr.min.css",
                      "~/Scripts/icheck/skins/all.css",
                      "~/Scripts/bootstrapTable/bootstrap-table.css",
                      "~/Scripts/wdTree/css/tree.css",
                      "~/Scripts/zTree/zTreeStyle/zTreeStyle.css",
                      "~/Content/fileicon.css",
                      "~/Content/site.css"));
        }
    }
}
